package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

/**
 * @author Jt
 * @date 2021/4/9 19:44
 */
public interface AdChannelService extends IService<AdChannel> {

    /**
     * 查询
     *
     * @param channelDto
     * @return
     */
    ResponseResult findByNameAndPage(ChannelDto channelDto);

    /**
     * 新增
     *
     * @param adChannel
     * @return
     */
    ResponseResult insert(AdChannel adChannel);

    /**
     * 修改
     *
     * @param adChannel
     * @return
     */
    ResponseResult update(AdChannel adChannel);

    /**
     * 根据ID删除
     *
     * @param id
     * @return
     */
    ResponseResult deleteById(Integer id);

}
